package com.fyi.mapper;

import com.fyi.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {

    List<Comment> selectAllComment();

    Comment selectCommentById(Integer id);

    Integer addComment(Comment comment);

    Integer updateComment(Comment comment);

    Integer deleteComment(Integer id);

}
